package fr.emn.nuitinfo.model;

import com.googlecode.objectify.ObjectifyService;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;

import fr.emn.nuitinfo.model.interfaces.ICoordonneesGPS;

@Entity
public class CoordonneesGPS implements ICoordonneesGPS {

    /**
     * 
     */
    private static final long serialVersionUID = 1362161357789591887L;
    @Id
    private long              id;
    private double               latitude;
    private double               longitude;

    public CoordonneesGPS() {
	ObjectifyService.register(getClass());
    }

    public double getLatitude() {
	return latitude;
    }

    public void setLatitude(double latitude) {
	this.latitude = latitude;
    }

    public double getLongitude() {
	return longitude;
    }

    public long getId() {
	return id;
    }

    public void setId(long id) {
	this.id = id;
    }

    public CoordonneesGPS(double latitude, double longitude) {
	super();
	this.latitude = latitude;
	this.longitude = longitude;
    }

    public void setLongitude(double longitude) {
	this.longitude = longitude;
    }

}
